package com.huangkailong.designpattern.composite.lucence;

/**
 * 透明组合模式测试.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * main.
     */
    public static void main(String[] args) {
        CoursePackage main = new CoursePackage("课程主目录", null);
        main.addCourse(new SingleCourse("Java", 99.0));
        main.addCourse(new SingleCourse("Python", 99.0));
        CoursePackage front = new CoursePackage("前端", null);
        front.addCourse(new SingleCourse("Javascript", 99.0));
        front.addCourse(new SingleCourse("html", 99.0));
        main.addCourse(front);
        main.showInfo(0);
    }
}
